//
//  MeHeaderView.h
//  CarLifes
//
//  Created by yu on 2017/6/22.
//  Copyright © 2017年 jpas. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AMapFoundationKit/AMapFoundationKit.h>
#import <AMapSearchKit/AMapSearchKit.h>

@class HeaderSubview;

typedef void(^MeHeaderBlock)();

@interface MeHeaderView : UIView

/**
 背景图片
 */
@property (nonatomic, strong) UIImageView *backgroundImageView;

/**
 背景图片黑色遮罩
 */
@property (nonatomic, strong) UIView *shelterView;

/**
 子视图
 */
@property (nonatomic, strong) HeaderSubview *headerSubview;

@end


@interface HeaderSubview : UIView

/**
 头像
 */
@property (nonatomic, strong) UIButton *iconView;

/**
 昵称
 */
@property (nonatomic, strong) UILabel *nameLabel;

/**
 温度
 */
@property (nonatomic, strong) UILabel *temperatureLabel;

/**
 温度图标
 */
@property (nonatomic, strong) UIImageView *degreeView;

/**
 位置
 */
@property (nonatomic, strong) UILabel *positionLabel;

/**
 位置图标
 */
@property (nonatomic, strong) UIImageView *positionView;

/**
 天气
 */
@property (nonatomic, strong) UILabel *weatherLabel;

@property (nonatomic, strong) UIButton *settingBtn;

@property (nonatomic, copy) MeHeaderBlock iconBlock;
@property (nonatomic, copy) MeHeaderBlock settingBlock;

- (void)updateWeatherWithInfo:(AMapLocalWeatherLive *)info;

@end


